Integrand size = 23, antiderivative size = 58 \[ \int \sqrt {d \sec (e+f x)} (a+b \tan (e+f x)) \, dx=\frac {2 b \sqrt {d \sec (e+f x)}}{f}+\frac {2 a \sqrt {\cos (e+f x)} \operatorname {EllipticF}\left (\frac {1}{2} (e+f x),2\right ) \sqrt {d \sec (e+f x)}}{f} \]
[Out]
Time = 0.06 (sec) , antiderivative size = 58, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {3567, 3856, 2720} \[ \int \sqrt {d \sec (e+f x)} (a+b \tan (e+f x)) \, dx=\frac {2 a \sqrt {\cos (e+f x)} \operatorname {EllipticF}\left (\frac {1}{2} (e+f x),2\right ) \sqrt {d \sec (e+f x)}}{f}+\frac {2 b \sqrt {d \sec (e+f x)}}{f} \]
[In]
[Out]
Rule 2720
Rule 3567
Rule 3856
Rubi steps \begin{align*} \text {integral}& = \frac {2 b \sqrt {d \sec (e+f x)}}{f}+a \int \sqrt {d \sec (e+f x)} \, dx \\ & = \frac {2 b \sqrt {d \sec (e+f x)}}{f}+\left (a \sqrt {\cos (e+f x)} \sqrt {d \sec (e+f x)}\right ) \int \frac {1}{\sqrt {\cos (e+f x)}} \, dx \\ & = \frac {2 b \sqrt {d \sec (e+f x)}}{f}+\frac {2 a \sqrt {\cos (e+f x)} \operatorname {EllipticF}\left (\frac {1}{2} (e+f x),2\right ) \sqrt {d \sec (e+f x)}}{f} \\ \end{align*}
Time = 0.81 (sec) , antiderivative size = 42, normalized size of antiderivative = 0.72 \[ \int \sqrt {d \sec (e+f x)} (a+b \tan (e+f x)) \, dx=\frac {2 \left (b+a \sqrt {\cos (e+f x)} \operatorname {EllipticF}\left (\frac {1}{2} (e+f x),2\right )\right ) \sqrt {d \sec (e+f x)}}{f} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 11.11 (sec) , antiderivative size = 95, normalized size of antiderivative = 1.64
method | result | size |
parts | \(-\frac {2 i a \left (\cos \left (f x +e \right )+1\right ) F\left (i \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )\right ), i\right ) \sqrt {d \sec \left (f x +e \right )}\, \sqrt {\frac {1}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}}{f}+\frac {2 b \sqrt {d \sec \left (f x +e \right )}}{f}\) | \(95\) |
default | \(-\frac {2 \left (i \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {1}{\cos \left (f x +e \right )+1}}\, F\left (i \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )\right ), i\right ) a \cos \left (f x +e \right )+i \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {1}{\cos \left (f x +e \right )+1}}\, F\left (i \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )\right ), i\right ) a -b \right ) \sqrt {d \sec \left (f x +e \right )}}{f}\) | \(138\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.08 (sec) , antiderivative size = 74, normalized size of antiderivative = 1.28 \[ \int \sqrt {d \sec (e+f x)} (a+b \tan (e+f x)) \, dx=\frac {-i \, \sqrt {2} a \sqrt {d} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (f x + e\right ) + i \, \sin \left (f x + e\right )\right ) + i \, \sqrt {2} a \sqrt {d} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (f x + e\right ) - i \, \sin \left (f x + e\right )\right ) + 2 \, b \sqrt {\frac {d}{\cos \left (f x + e\right )}}}{f} \]
[In]
[Out]
\[ \int \sqrt {d \sec (e+f x)} (a+b \tan (e+f x)) \, dx=\int \sqrt {d \sec {\left (e + f x \right )}} \left (a + b \tan {\left (e + f x \right )}\right )\, dx \]
[In]
[Out]
\[ \int \sqrt {d \sec (e+f x)} (a+b \tan (e+f x)) \, dx=\int { \sqrt {d \sec \left (f x + e\right )} {\left (b \tan \left (f x + e\right ) + a\right )} \,d x } \]
[In]
[Out]
\[ \int \sqrt {d \sec (e+f x)} (a+b \tan (e+f x)) \, dx=\int { \sqrt {d \sec \left (f x + e\right )} {\left (b \tan \left (f x + e\right ) + a\right )} \,d x } \]
[In]
[Out]
Time = 0.43 (sec) , antiderivative size = 39, normalized size of antiderivative = 0.67 \[ \int \sqrt {d \sec (e+f x)} (a+b \tan (e+f x)) \, dx=\frac {2\,\left (b+a\,\sqrt {\cos \left (e+f\,x\right )}\,\mathrm {F}\left (\frac {e}{2}+\frac {f\,x}{2}\middle |2\right )\right )\,\sqrt {\frac {d}{\cos \left (e+f\,x\right )}}}{f} \]
[In]
[Out]